//
//  BookingConfirmSubjectCell.m
//  OfficeBook
//
//  Created by 孙晓奇 on 15/10/2.
//  Copyright © 2015年 sunny. All rights reserved.
//

#import "BookingConfirmSubjectCell.h"

@interface BookingConfirmSubjectCell()<UITextFieldDelegate>

@property (strong, nonatomic) IBOutlet UITextField *subjectTextField;

@end

@implementation BookingConfirmSubjectCell

- (void)awakeFromNib {
    // Initialization code
    self.subjectTextField.delegate = self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@synthesize subject = _subject;
-(void)setSubject:(NSString *)subject{
    _subject = subject;
    self.subjectTextField.text = subject;
}

-(NSString *)subject{
    return self.subjectTextField.text;
}

-(bool)textFieldShouldReturn:(UITextField *)textField{
    [textField resignFirstResponder];
    return YES;
}
@end
